package com.hermit.alaskagulfcustom.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.hermit.alaskagulfcustom.dao.UserDao;
import com.hermit.alaskagulfcustom.entity.UserEntity;
import org.springframework.stereotype.Service;

/**
 * @author hermit
 * @data 2021/6/15
 */
@Service
public class UserService extends ServiceImpl<UserDao, UserEntity> {

    public Page<UserEntity> selectUserPage(Page<UserEntity> page, Integer state) {
        page.setRecords(baseMapper.selectUserList(page, state));
        return page;
    }
}
